package com.pimee.support.shiro.security;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 自定义token,用于确定登陆者类型
 * 
 * @author shawbo-pc
 *
 */
public class UserToken extends UsernamePasswordToken {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1891221376115562001L;
	private String loginType;

	public UserToken() {
	}

	public UserToken(final String username, final String password, final String loginType) {
		super(username, password);
		this.loginType = loginType;
	}
	
	public UserToken(final String username, final String password, final String loginType, boolean rememberMe) {
		super(username, password, rememberMe);
		this.loginType = loginType;
	}

	public String getLoginType() {
		return loginType;
	}

	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}
}
